const log4js = require('log4js');

log4js.configure({
  appenders: { wepay: { type: 'file', filename: 'wepay.log' } },
  categories: { default: { appenders: ['wepay'], level: 'error' } }
});

const logger = log4js.getLogger('wepay');

module.exports = logger;